package org.edu.modules.jxzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.edu.modules.jxzy.entity.JwJiaocai;
import org.edu.modules.jxzy.entity.JwJiaocaiOrder;
import org.edu.modules.jxzy.mapper.JwJiaocaiOrderMapper;
import org.edu.modules.jxzy.service.IJwJiaocaiOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 教材订单表
 * @Author: jeecg-boot
 * @Date:   2021-04-14
 * @Version: V1.0
 */
@Service
public class JwJiaocaiOrderServiceImpl extends ServiceImpl<JwJiaocaiOrderMapper, JwJiaocaiOrder> implements IJwJiaocaiOrderService {



    @Override
    public IPage<JwJiaocaiOrder> listByPage(IPage<JwJiaocaiOrder> page, Wrapper<JwJiaocaiOrder> wrapper) {
        return baseMapper.listByPage(page,wrapper);
    }

    @Override
    public List<JwJiaocaiOrder> listByJcid(int jcid) {
        return baseMapper.selectList(new QueryWrapper<JwJiaocaiOrder>().eq("jcId",jcid));
    }
}
